package com.itheima.user.feign;

import com.itheima.common.pojo.TbOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "order-service")
public interface OrderFeign {
    @GetMapping("/order/{username}")
    public List<TbOrder> findList(@PathVariable("username") String username );
}
